package com.bwie.parkdemo.mvvm.ui.activity;

import android.databinding.ViewDataBinding;
import android.util.Log;

import com.bwie.lib_core.action.ActActionField;
import com.bwie.lib_core.mvvm.base.BaseActivity;
import com.bwie.parkdemo.R;
import com.bwie.parkdemo.BR;
import com.bwie.parkdemo.mvvm.model.entity.PatrolesEntity;
import com.bwie.parkdemo.mvvm.viewmodel.AddPuchViewModel;

import static com.bwie.lib_core.action.ActActionField.ACTBUNDLE;

public class PatrolesValuesActivity extends BaseActivity<ViewDataBinding,AddPuchViewModel>{
    @Override
    public int initLayout() {
        return R.layout.activity_patroles_values;
    }

    @Override
    public void initView() {
        PatrolesEntity.Values values = (PatrolesEntity.Values) getIntent().getBundleExtra(ACTBUNDLE).getSerializable("Values");
        Log.e("ZXWQ","PatrolesValuesActivity:"+values.pEnd);
        vm.setDatas(values.pPoint);
    }

    @Override
    public int initVariable() {
        return BR.vm;
    }
}
